package com.tbit.main.pojo.VO;

import com.tbit.main.constant.SysConstant;
import lombok.Data;

/**
 * @author yao
 * @since 2025/1/22 17:24
 */
@Data
public class UpKeepQueryReqVO {

    private Integer accountId;

    private String userCode;

    /**
     * 0: 无需保养，1: 需要保养
     */
    private Integer status;

    private Integer startMileage;

    private Integer endMileage;

    private Integer startTime;

    private Integer endTime;

    private Integer mapType = SysConstant.GOOGLE;

    /**
     * km转m
     */
    public void KMConvertM() {
        startMileage = startMileage == null ? null : startMileage * 1000;
        endMileage = endMileage == null ? null : endMileage * 1000;
    }

}
